package com.hskn.hss.module.workgroup.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.entity.TreeEntity;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.workgroup.entity.WorkGroup;
import com.hskn.hss.module.workgroup.entity.WorkGroupFull;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-11
 */
public interface IWorkGroupService extends IService<WorkGroup> {

    JSONObject mList(BaseEntity entity, JSONObject params) throws HssException;

    void mUpdate(JSONObject params) throws HssException;

    void add(JSONObject params) throws HssException;


    WorkGroupFull detail(JSONObject params) throws HssException;

    List<TreeEntity> tree() throws HssException;

    List<Map<String, Object>> treeSimple(JSONObject params) throws HssException;

    Map<String, WorkGroup> getWorkGroupMap(QueryWrapper<WorkGroup> workGroupQueryWrapper);
}
